package com.example.controller;

import com.example.service.SysPayService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class SysPayController {

    @Resource
    private SysPayService sysPayService;

    /****
     * 支付回调
     * @param data
     * @param sign
     * @return
     */
    @PostMapping(value = "callBack")
    public String callBack(String data, String sign) throws Exception {
        return sysPayService.callBack(data, sign);
    }
}
